<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl">
<head>
	<title><?php echo $html['title'] ?></title>
	<?php foreach( $html['script'] as $_tmp ) printf('<script type="text/javascript" src="%s"></script>'.PHP_EOL, $_tmp ); ?>
	<?php foreach( $html['link'] as $_tmp ) printf('<link rel="stylesheet" href="%s" type="text/css" media="screen"/>'."\n", $_tmp ); ?>
</head>
<body>
<!--[if IE]><center><![endif]-->
<div class="gallery">
<?php echo $html['path']?>
<?php
if( count($html['dirs'])>0 ) foreach( $html['dirs'] as $_dir )
	printf( '<div class="thumb"><a href="%s"><img alt="%s" src="%s" style="width:96px;height:96px;"/><br/>%s</a></div>'."\n",
		$_dir['url'], $_dir['name'], $_dir['icon'], $_dir['name'] );
?>
<?php
if( count($html['thumbs'])>0 )
foreach( $html['thumbs'] as $_thumb )
	printf( '<div class="thumb"><a title="%s" href="%s" rel="lightbox-gal"><img alt="%s" src="%s"/><br/>%s</a></div>'."\n",
		$_thumb['title'], $_thumb['url'], $_thumb['title'], $_thumb['src'], $_thumb['name'] );
?>

<div style="clear:both;"></div>
</div>
<div class="copy"><a href="http://danielczuba.pl/project/simply-gallery/" title="Simply Gallery, a gallery PHP generator script">Simply Gallery</a> v.<?php echo $html['version'] ?> by <a href="http://danielczuba.pl/" title="Daniel Alkemic Czuba">Alkemic</a></div>
<!--[if IE]></center><![endif]-->
</body>
</html>
